package com.aaa.ssm.controller;

import com.aaa.ssm.entity.OperLog;
import com.aaa.ssm.service.OperLogService;
import com.aaa.ssm.util.Page;
import com.aaa.ssm.util.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RestController
@RequestMapping("operLog")
public class OperLogController extends BaseController{
    @Resource
    private OperLogService operLogService;

    @PostMapping("queryPage")
    public Result queryPage(@RequestBody Page<OperLog> page){
        return success(operLogService.queryOperLog(page));
    }

    @GetMapping("annualQuery")
    public Result annualQuery(String monthDay){
        return success(operLogService.annualQuery(monthDay));
    }

}
